﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example01_CSharp
{
    class CRectangle
    {
        int x;
        int y;
        public void SetValues(int a, int b)
        {
            x = a;
            y = b;
        }
        public int area()
        {
            return (x * y);
        }
        class Program
        {
            static void Main(string[] args)
            {
                CRectangle recta = new CRectangle();
                CRectangle rectb = new CRectangle();
                recta.SetValues(3, 4);
                rectb.SetValues(5, 6);
                Console.WriteLine("recta:{0}", recta.area());
                Console.WriteLine("\nrectb:{0}", rectb.area());
            }
        }
    }
}